#!/bin/bash

docker compose -f docker-compose.yml stop admin-api business-api game-api pay-api pay-rpc game-rpc usercenter-rpc wallet-rpc stat-rpc usercenter-mq job scheduler
 docker compose -f docker-compose.yml rm admin-api business-api game-api pay-api pay-rpc game-rpc usercenter-rpc wallet-rpc stat-rpc usercenter-mq job scheduler
 docker rmi admin-api:latest business-api:latest game-api:latest pay-api:latest pay-rpc:latest game-rpc:latest usercenter-rpc:latest wallet-rpc:latest stat-rpc:latest usercenter-mq:latest job-timer:latest scheduler-timer:latest
 docker load -i D:/go/go/src/navi-mumbai/images/navi-mumbai-latest.tar
 docker compose -f docker-compose.yml up -d admin-api business-api game-api pay-api pay-rpc game-rpc usercenter-rpc wallet-rpc stat-rpc usercenter-mq job scheduler
 docker compose -f docker-compose-env.yml restart nginx
 docker compose -f docker-compose.yml ps